package com.itfreer.data.metadata;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.itfreer.form.api.metadate.MetadataEntity;
import com.itfreer.form.api.metadate.MetadataLocalService;

/**
 * 定义元数据本地服务
 */
@Component("MetadataLocalServiceImp")
public class MetadataLocalServiceImp implements MetadataLocalService {

	@Autowired
	private DefaultMetadataService metadataLocalService;

	/**
	 * 获取元数据
	 * 
	 * @param id
	 * @return
	 */
	public List<MetadataEntity> getMetadata(String id) {
		return metadataLocalService.getEntitys(id);
	}
}